/**
 * Created by teddy on 5/31/16.
 */

import io.appium.java_client.MobileElement;
import io.appium.java_client.ios.IOSElement;
import io.appium.java_client.pagefactory.iOSFindBy;


import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebElement;
import org.openqa.selenium.support.FindBy;

import java.util.List;

public class iOSPageObject {

    @FindBy(className = "UIAButton")
    public List<WebElement> uiButtons;

    @FindBy(className = "UIAButton")
    public List<WebElement> iosUIButtons;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public List<WebElement> iosUIAutomatorButtons;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public List<MobileElement> mobileButtons;

    @FindBy(className = "UIAButton")
    public List<MobileElement> mobiletFindBy_Buttons;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public List<RemoteWebElement> remoteElementViews;

    public List<WebElement> chainElementViews;


    @FindBy(className = "UIAButton")
    public WebElement uiButton;

    @FindBy(className = "UIAButton")
    public WebElement iosUIButton;


    // add some
    @FindBy(className = "UIACollection")
    public List<WebElement> allUICollection;

    @FindBy(className = "UIWindow")
    public List<WebElement> allUIWindow;

    @FindBy(className = "UIAUIStaticText")
    public List<WebElement> allUIStaticText;

    @FindBy(className = "UIACollectionView")
    public List<WebElement> allUICollectionView;

    @FindBy(className = "UIACollectionViewCell")
    public List<WebElement> allUICollectionViewCell;

    @FindBy(className = "UIATabBar")
    public List<WebElement> allUITabBar;

    @FindBy(className = "UIATableView")
    public List<WebElement> allUITableView;

    @FindBy(className = "UIATableViewCell")
    public List<WebElement> allUITableViewCell;

    @FindBy(className = "UIATextField")
    public List<WebElement> allUITextField;

    @FindBy(className = "UIAImage")
    public List<WebElement> allUIAImage;

    @FindBy(className = "UIAScrollView")
    public List<WebElement> allUIScrollView;
    // add end


    @iOSFindBy(uiAutomator = ".elements()[0]")
    public WebElement iosUIAutomatorButton;


    @iOSFindBy(uiAutomator = ".elements()[0]")
    public MobileElement mobileButton;

    @FindBy(className = "UIAButton")
    public MobileElement mobiletFindBy_Button;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public RemoteWebElement remotetextVieW;

    public WebElement chainElementView;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public IOSElement iosButton;

    @iOSFindBy(uiAutomator = ".elements()[0]")
    public List<IOSElement> iosButtons;

    public List<WebElement> findAllElements;
}
